1
2
3
4
You can do that by setting the properties of the textContainer like so:
textView.textContainer.maximumNumberOfLines = 2;
textView.textContainer.lineBreakMode = NSLineBreakByTruncatingTail;
Prev Next